package com.elitedatai.mchtest.mission.entity;

import com.elitedatai.mchtest.common.model.BaseEntity;
import com.elitedatai.mchtest.common.util.LongListConverter;
import com.elitedatai.mchtest.common.util.LongListListConverter;
import jakarta.persistence.Column;
import jakarta.persistence.Convert;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.Data;
import java.util.List;

@Entity
@Data
@Table(name = "flight_plan")
public class FlightPlan extends BaseEntity {

    private String planId;

    private String name;

    private String missionId;

    private String flyerId;

    private String waylineId;

    private String dockSn;

    private Integer waylineType;

    //执行类型
    private Integer taskType;

    //返航高度
    private Integer rthAltitude;

    //失控行为
    private Integer outOfControlAction;

    //最低电池容量
    private Integer minBatteryCapacity;

    private Integer minStorageCapacity;

    @Convert(converter = LongListConverter.class)
    private List<Long> taskDays;

    @Convert(converter = LongListListConverter.class)
    private List<List<Long>> taskPeriods;

    private Integer status;

    private String jobId = "";

}
